#ifndef ITEMDATA_H
#define ITEMDATA_H

#include <QObject>
#include <QPointF>

class QGraphicsItem;

typedef enum {
	text,
	rect
}ItemType_t;

class ItemData// : public QObject
{
//	Q_OBJECT

public:
	ItemData();//QObject *parent = 0);
	~ItemData();

//	QList<QGraphicsItem *> 

	static ItemData * mTopItem;
	static ItemData * createItem(QString type, int level = 1);
	//
	QList<ItemData * > mChildren;
	void addChild(ItemData * id);
// datas for serialize;
	QString mType;
	QString mLabe;
	int mMapId;
	int mLevel;
	//QObject * mItem;
	ItemData * mParent;
	QPointF mPos;
//	QSize idSize;


private:
	
};

#endif // ITEMDATA_H
